/**
 * ...
 * @author Thot
 */

function SmartTexture(){}; 
POO.extend( SmartTexture, Texture2D );


	// static
	SmartTexture._instances = new Array();

	SmartTexture.createTexture = function()
	{
		var texture = null;
		
		if( SmartTexture._instances.length > 0 )
		{
			texture = SmartTexture._instances.shift();
		}
		else
		{
			texture = new SmartTexture();
		}
		
		return texture;
	};
	
	
	//public
	SmartTexture.prototype.recycle = function()
	{
		this.data = null;
		this.url = null;
		this.id = -1;
		this.color = "#000000";
		this.type = Texture2D.COLOR_TEXTURE;
		
		SmartTexture._instances.push( this );
	};
	
	